<?php 
use services\models\MemberInfo;
$conId = Yii::$app->controller->id;
$username = MemberInfo::getUserNameByMemberId($asf->uid);
$src = MemberInfo::getAvatarByMemberId($asf->uid);
?>
<!DOCTYPE HTML>
<html>
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title><?=$asf->c_content;?></title>
    <link rel="stylesheet" type="text/css" href="<?=Yii::getAlias('@static')?>/wap/minisite/shares/css/style.css">
</head>
<body class="page_detail">
<header>
    <div class="header_left" id="back"><span class="icon icon_arr_l"></span></div>
    <h1><?=$asf->c_name;?></h1>
</header>
<div class="detail">
    <div class="detail_top">
        <div class="detail_user_pic"><img <?=$src;?> /></div>
        <div class="detail_user_name"><span><?=$username;?></span></div>
        <div class="channel_num">
            <div class="channel_views"><span class="icon icon_views"></span><span class="views_num"><?=$asf->mActivityShowFeelStatistics->ShowTimes?></span></div>
            <div class="channel_praises" data-id="<?=\Yii::$app->request->get('asf_id');?>"><span class="icon icon_praise"></span><span class="praise_num"><?=$asf->mActivityShowFeelStatistics->GoodTimes?></span></div>
        </div>
    </div>
    <div class="detail_content"><?=$asf->c_content;?></div>
    <div class="detail_image">
        <?php foreach( \services\models\UpFileData::showImages($asf->c_image,3) as $img): ?>
                <div><img src="<?=$img?>"></div>
        <?php endforeach;?>
    </div>
</div>
<div class="discuss_list"><ul></ul></div>
<div class="temp_loadmore">加载中...</div>
<div class="discuss_box">
    <div class="discuss_input"><input type="text" maxlength="50" placeholder="添加评论" id="discussContent"></div>
    <div class="discuss_send">发送</div>
</div>
<script src="<?=Yii::getAlias('@static')?>/wap/common/js/jquery-2.2.0.min.js"></script>
<script src="<?=Yii::getAlias('@static')?>/wap/common/js/fastclick.min.js"></script>
<script src="<?=Yii::getAlias('@static')?>/wap/common/js/king.wap.js"></script>
<script src="<?=Yii::getAlias('@static')?>/wap/minisite/shares/js/detail.js"></script>
<script>
var requestReplyUrl = "<?=Yii::$app->urlManager->createUrl(["$conId/reply", 'asf_id'=>$asf->id, 'as_id'=>$asf->as_id,'c_content'=>'']);?>";
var requestReplyListUrl = "<?=Yii::$app->urlManager->createUrl(["$conId/reply-list", 'asf_id'=>$asf->id, 'page'=>'']);?>";
var requestPraiseUrl = "<?=Yii::$app->urlManager->createUrl(["$conId/click-like", 'asf_id'=>'']);?>";
</script>

<div style="display: none;">
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?a52dc90ef87f9447cc988c4aaf719dba";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

</div>
<!-- 微信分享文案,其他浏览器自动忽略 -->
<?= common\widgets\WeChatShareWidget::widget(['type'=>$this->context->layout_data]);?>
</body>
</html>

